com.cete.dynamicpdf.merger
Class ImportedPageData



Example : This example shows you how to import one page of an existing PDF, scale that page and then place it on another blank page.
     import com.cete.dynamicpdf.*;
     import com.cete.dynamicpdf.merger.*;
 
     public class MyClass {
       public static void main(String args[]) {
          // Create a PDF Document
          Document document = new Document();
             
          // Create a Page and add it to the document
          Page page = new Page();
          document.getPages().add( page );
 
         // Create an ImportedPageData and add it to the page
         ImportedPageData data = new ImportedPageData("[physicalpath]/ImportPDF.pdf", 2, -200, -100, 0.24f );
         page.getElements().add( data );
  
         // Save the PDF
         document.draw( "[physicalpath]/MyDocument.pdf" );
      }
    }